package lab02.test36;

public class Test36 {
    public static void main(String[] args) {
        int[] grade = new int[3];
        System.out.println("姓名    " + "类型    " + "成绩");

        Undergraduate zhangSan = new Undergraduate();
        zhangSan.setName("张三");
        zhangSan.setCategoey("本科生");
        grade[0] = 90;
        grade[1] = 100;
        grade[2] = 100;
        System.out.print(zhangSan.getName() + "   " + zhangSan.getCategoey());
        zhangSan.getGradeLevel(grade);

        Undergraduate liSi = new Undergraduate();
        liSi.setName("李四");
        liSi.setCategoey("本科生");
        grade[0] = 80;
        grade[1] = 85;
        grade[2] = 90;
        System.out.print(liSi.getName() + "   " + liSi.getCategoey());
        liSi.getGradeLevel(grade);

        Postgraduate wangWu = new Postgraduate();
        wangWu.setName("王五");
        wangWu.setCategoey("研究生");
        grade[0] = 82;
        grade[1] = 85;
        grade[2] = 88;
        System.out.print(wangWu.getName() + "   " + wangWu.getCategoey());
        wangWu.getGradeLevel(grade);

        Undergraduate zhaoLiu = new Undergraduate();
        zhaoLiu.setName("赵六");
        zhaoLiu.setCategoey("本科生");
        grade[0] = 75;
        grade[1] = 82;
        grade[2] = 87;
        System.out.print(zhaoLiu.getName() + "   " + zhaoLiu.getCategoey());
        zhaoLiu.getGradeLevel(grade);

        Postgraduate chenQi = new Postgraduate();
        chenQi.setName("陈七");
        chenQi.setCategoey("研究生");
        grade[0] = 80;
        grade[1] = 82;
        grade[2] = 84;
        System.out.print(chenQi.getName() + "   " + chenQi.getCategoey());
        chenQi.getGradeLevel(grade);




    }
}
